package interface_test;

/**
 * @author yuisama
 * @date 2022/09/15 21:27
 **/
public class Dog extends Animal implements IRun,ISwim{

    @Override
    public void run() {
        this.testRun();
        System.out.println("小狗正在跑");
    }

    @Override
    public void swim() {
        System.out.println("小狗正在狗刨");
    }

    @Override
    public void eat(String food) {
        System.out.println(this.name + "正在吃" + food);
    }
}